# Copyright 2024 The Kumo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

kmcmake_cc_test(
        NAME buffer_test
        MODULE core
        SOURCES buffer_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME chunked_array_test
        MODULE core
        SOURCES chunked_array_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME datum_test
        MODULE core
        SOURCES datum_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)


kmcmake_cc_test(
        NAME field_ref_test
        MODULE core
        SOURCES field_ref_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME memory_pool_test
        MODULE core
        SOURCES memory_pool_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME pretty_print_test
        MODULE core
        SOURCES pretty_print_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME public_api_test
        MODULE core
        SOURCES public_api_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME record_batch_test
        MODULE core
        SOURCES record_batch_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME scalar_test
        MODULE core
        SOURCES scalar_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME sparse_tensor_test
        MODULE core
        SOURCES sparse_tensor_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME stl_iterator_test
        MODULE core
        SOURCES stl_iterator_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME stl_test
        MODULE core
        SOURCES stl_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME table_builder_test
        MODULE core
        SOURCES table_builder_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME table_test
        MODULE core
        SOURCES table_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

